//
//  ViewController.m
//  22-SDWebImage
//
//  Created by dllo on 16/8/12.
//  Copyright © 2016年 ZHW. All rights reserved.
//

#import "ViewController.h"
#import "UIImageView+WebCache.h"
@interface ViewController ()
@property (weak, nonatomic) IBOutlet UIImageView *myImageView;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
//    [_myImageView sd_setImageWithURL:[NSURL URLWithString:@"http://desk.fd.zol-img.com.cn/t_s960x600c5/g5/M00/01/0E/ChMkJ1bKwZ6IbJp_ACmCEdGWqeUAALGbAHovfMAKYIp986.jpg"] placeholderImage:[UIImage new]];
    
   [_myImageView sd_setImageWithURL:[NSURL URLWithString:@"http://www.doubean.com/face/store/face/0000000004/make.jpg?c=20160812171531135"] placeholderImage:[UIImage imageNamed:@"1.jpg"] options:SDWebImageAvoidAutoSetImage completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {
       
       
   }];
    NSLog(@"%@", NSHomeDirectory());
    // Do any additional setup after loading the view, typically from a nib.
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
